<?php

namespace app\admin\model;

use think\Model;

class User extends Model
{

    // 获取用户余额
    public static function getBalacne($userId)
    {
        return self::where('id', $userId)->value('price');
    }
}
